package com.atpuge.oss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author by sun
 * @date 2021/6/13.9:16
 */
/*
*
* (exclude = DataSourceAutoConfiguration.class)  在Spring注入的标签后添加此内容，可以使Spring在运行的时候，默认不去搜索运行数据库的配置内容
* */
@EnableDiscoveryClient
@EnableSwagger2
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@ComponentScan(basePackages = {"com.atpuge"})
public class OssApplication {
    public static void main(String[] args) {
        SpringApplication.run(OssApplication.class,args);
    }
}
